#ifndef NEWSGROUP_H
#define NEWSGROUP_H

#include <string>
#include "article.h"
#include <vector>

using namespace std;

namespace client_server{
class NewsGroup{
	public:
		NewsGroup(const string pname, const unsigned int pn);   
		~NewsGroup();
    
		const string& getNewsGroupName() const{
			return name;
		}   
    
		vector<Article*>& getArticles(){
			return articles;
		}
    
		const unsigned int& getNewsGroupNumber() const{
			return number;
		}

		void insertNewArticle(Article* art);

		bool deleteArticle(unsigned int aId);

	private:
		NewsGroup(const NewsGroup&);
		NewsGroup operator=(const NewsGroup&);
		string name;
		const unsigned int number;
		vector<Article*> articles;
	};
}

#endif
